
document.captureEvents(Event.MOUSEMOVE);
// Temporary variables to hold mouse x-y pos.s
var tempX = 0;
var tempY = 0;

// Main function to retrieve mouse x-y pos.s
function getMouseXY(e) {
	tempX = e.offsetX;
	tempY = e.offsetY;
	window.open("/WeatherWEB/protected/window.xhtml?m=1&x="+tempX+"&y="+tempY, "Dane miasta", "status=0, toolbar=0, menubar=0, resizable=0, width=325, height=190");

	return true;
}
f = function() {
	$("#mapa").attr("src", "/WeatherWEB/MapImage?timestamp="+new Date().getTime());
	setTimeout(f, 60*1000);
};
$(document).ready(function() { setTimeout(f, 60*1000); });
